package com.link2room.rodimus.dto.result.base;

import com.link2room.common.dto.result.base.BaseDto;

/**
 * Created by LN on 2017/7/28.9:53
 */
public class CouponConsumeDto extends BaseDto {

    private String couponCode;
    private String consumeNo;
    private String goodCode;
    private String goodName;
    private String sta;
    private String memberNo;
    private Integer amount;

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public String getConsumeNo() {
        return consumeNo;
    }

    public void setConsumeNo(String consumeNo) {
        this.consumeNo = consumeNo;
    }

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getSta() {
        return sta;
    }

    public void setSta(String sta) {
        this.sta = sta;
    }

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CouponConsumeDto that = (CouponConsumeDto) o;

        if (couponCode != null ? !couponCode.equals(that.couponCode) : that.couponCode != null) return false;
        if (consumeNo != null ? !consumeNo.equals(that.consumeNo) : that.consumeNo != null) return false;
        if (goodCode != null ? !goodCode.equals(that.goodCode) : that.goodCode != null) return false;
        if (goodName != null ? !goodName.equals(that.goodName) : that.goodName != null) return false;
        if (sta != null ? !sta.equals(that.sta) : that.sta != null) return false;
        if (memberNo != null ? !memberNo.equals(that.memberNo) : that.memberNo != null) return false;
        return amount != null ? amount.equals(that.amount) : that.amount == null;
    }

    @Override
    public int hashCode() {
        int result = couponCode != null ? couponCode.hashCode() : 0;
        result = 31 * result + (consumeNo != null ? consumeNo.hashCode() : 0);
        result = 31 * result + (goodCode != null ? goodCode.hashCode() : 0);
        result = 31 * result + (goodName != null ? goodName.hashCode() : 0);
        result = 31 * result + (sta != null ? sta.hashCode() : 0);
        result = 31 * result + (memberNo != null ? memberNo.hashCode() : 0);
        result = 31 * result + (amount != null ? amount.hashCode() : 0);
        return result;
    }
}
